<script setup>
import {ref ,  computed} from "vue";

let count = ref( 0);
let doubleCount = computed(()=> count.value * 2)

let handleChange = () =>{
  count.value ++;
}
</script>

<template>
  <div>
    <button @click="handleChange">点击</button>
    {{ count }},{{doubleCount}}
  </div>
</template>

<style lang="scss" scoped>

</style>